<!doctype html>
<html 
<?php 
function getAcceptLang(){
	$langArr = array('zh-cn','zh-tw','zh-mo','zh-sg','zh-hk','zh-my');
	$navLang = strtolower(substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 5));
	if(in_array($navLang,$langArr)){
		return $navLang;
	}else{
		return "zh-cn";
	}
}
$variant=get_query_var('variant');
$lang = empty($variant)?getAcceptLang():$variant;
echo 'lang="'.$lang.'"';
?>
>
<head>
<meta charset="utf-8">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<?php if( ztmao( 'ztmao_favicon', '' ) ) { ?>
	<link rel="shortcut icon" href="<?php echo ztmao( 'ztmao_favicon', '' ); ?>" type="image/x-icon" >
	<?php }else{ ?>
	<link rel="Shortcut Icon" href="<?php bloginfo('template_url');?>/img/favicon.ico" type="image/x-icon" />
<?php }?>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="robots" content="noarchive"> 
<meta name="google" content="notranslate">
<!-- <link rel="manifest" href="<?php bloginfo('template_url');?>/manifest.json" > -->
<link rel="dns-prefetch" href="https://www.dailybuzz.cc">
<link rel="dns-prefetch" href="https://pagead2.googlesyndication.com">
<link rel="alternate"  href="<?php echo home_url().str_replace(empty($variant)?'':$variant.'/', '',  $_SERVER['REQUEST_URI']); ?>" hreflang="x-default">
<link rel="alternate"  href="<?php echo home_url(); ?>/zh-cn<?php echo str_replace(empty($variant)?'':$variant.'/', '',  $_SERVER['REQUEST_URI']); ?>" hreflang="zh-cn">
<link rel="alternate"  href="<?php echo home_url(); ?>/zh-tw<?php echo str_replace(empty($variant)?'':$variant.'/', '',  $_SERVER['REQUEST_URI']); ?>" hreflang="zh-tw">
<link rel="alternate"  href="<?php echo home_url(); ?>/zh-hk<?php echo str_replace(empty($variant)?'':$variant.'/', '',  $_SERVER['REQUEST_URI']); ?>" hreflang="zh-hk">
<link rel="alternate"  href="<?php echo home_url(); ?>/zh-mo<?php echo str_replace(empty($variant)?'':$variant.'/', '',  $_SERVER['REQUEST_URI']); ?>" hreflang="zh-mo">
<link rel="alternate"  href="<?php echo home_url(); ?>/zh-sg<?php echo str_replace(empty($variant)?'':$variant.'/', '',  $_SERVER['REQUEST_URI']); ?>" hreflang="zh-sg">
<link rel="alternate"  href="<?php echo home_url(); ?>/zh-my<?php echo str_replace(empty($variant)?'':$variant.'/', '',  $_SERVER['REQUEST_URI']); ?>" hreflang="zh-my">
<style>html,body,div,span,h3,p,a,img,ins,ul,li,form{margin:0;padding:0;border:0;outline:rgb(0,0,0);font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;height:auto}html{font-family:'microsoft yahei',微软雅黑,'Hiragino Sans GB',宋体,sans-serif,Arial;font-size:10px;background-color:rgb(255,255,255);background-position:initial initial;background-repeat:initial initial}img{border:0;vertical-align:middle;max-width:100%!important}i{font-weight:400;font-style:normal}ul{list-style:none}a{text-decoration:none}h3{font-weight:400;font-size:100%}button,input{margin:0;font-family:inherit;font-size:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;line-height:inherit;color:inherit}*{box-sizing:border-box}::before,::after{box-sizing:border-box}header,section{display:block}@media screen and (min-width:100px){html{font-size:10px}}@media screen and (min-width:320px){html{font-size:10px}}@media screen and (min-width:375px){html{font-size:12px}}@media screen and (min-width:414px){html{font-size:13px}}@media screen and (min-width:600px){html{font-size:14px}}#top_header{display:block;background-color:rgb(255,255,255);overflow:hidden;background-position:initial initial;background-repeat:initial initial}#top_header .top_bar{height:50px;position:relative;background-color:rgb(255,255,255);background-position:initial initial;background-repeat:initial initial}#top_header .top_bar .abs_m{width:100%;text-align:center;color:rgb(255,255,255);font-weight:700;display:block;height:50px}#top_header .top_bar .abs_l{width:54px;z-index:100;color:rgb(255,255,255);font-size:14px;left:20px;font-weight:600}#top_header .top_bar .abs_r{color:rgb(255,255,255);right:20px;z-index:100;font-size:14px;font-weight:600}#top_header .top_bar .refresh_title{display:inline-block;width:129.5px;height:100%;font-size:0;box-sizing:border-box;padding-top:10px}.top_menu_bar{background-color:rgb(244,245,246);position:relative;height:37px;box-sizing:border-box;width:100%;background-position:initial initial;background-repeat:initial initial}.top_menu_bar .top_menu_list{overflow-y:hidden;overflow-x:scroll;white-space:nowrap}.top_menu_bar .top_menu_list .menu-item{white-space:nowrap;display:inline-block;width:auto;padding-left:10px;padding-right:10px;color:rgb(80,80,80);text-decoration:none;font-size:17px;line-height:26px;height:26px;margin-left:5px;margin-top:5px;margin-bottom:5px}.top_menu_bar .top_menu_list .menu-item>a{color:rgb(80,80,80)}.top_menu_bar .top_menu_list::-webkit-scrollbar{display:none}.top_menu_bar::before,.top_menu_bar::after{content:'';position:absolute;bottom:0;left:0;width:100%;height:1px;background-image:-webkit-linear-gradient(top,transparent,transparent 40%,rgb(221,221,221) 40%);background-size:100% 1px;background-position:50% 100%;background-repeat:no-repeat no-repeat}.top_menu_bar::before{top:0}.top_menu_bar .top_menu_list .current-menu-item>a{color:rgb(60,165,246)}.feed-list-container{height:auto}.feed-list-container section{position:relative;margin:0 15px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgba(221,221,221,.6)}.feed-list-container section.feed-ad{padding:16px 0}.feed-list-container .article_link{display:block;position:relative;padding:16px 0;min-height:42px;font-size:0;text-decoration:none}.feed-list-container .desc{display:inline-block;width:67%;vertical-align:middle}.feed-list-container .list_img_holder{overflow:hidden;width:33%;height:6.1525rem;display:inline-block;vertical-align:middle;position:relative}.feed-list-container .list_img_holder img{border:none;display:block;width:100%;text-decoration:none}.feed-list-container h3{width:auto;color:rgb(34,34,34);font-size:17px;line-height:21px;font-weight:400;-webkit-line-clamp:3;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.feed-list-container .image-margin-left{margin-left:12px}.feed-list-container .list_bottom{text-align:center}.feed-list-container .list_bottom a{display:block;color:rgb(153,153,153);font-size:16px;line-height:48px;text-decoration:none}.feed-list-container .item_info{color:rgb(153,153,153);overflow:hidden;font-size:0;margin-top:6px}.feed-list-container .middle_mode .item_info{margin-left:12px}.feed-list-container .item_info span{display:inline-block;font-size:10px;line-height:12px;vertical-align:middle}.feed-list-container .item_info .space{margin-right:5px}.scroller-status .infinite-scroll-last,.scroller-status .infinite-scroll-error{text-align:center;color:rgb(153,153,153);padding:1rem 0 .5rem}.search-box{display:none}.search-box{position:fixed;top:0;bottom:0;width:100%;height:100%;background-color:rgb(255,255,255);z-index:9999;overflow:auto;opacity:1;-webkit-transform:scale(1,1)}.search-content{position:absolute;width:40%;margin-left:30%;padding-top:10%}.overlay-dialog-animate{-webkit-transform-origin:50% 100%;-webkit-animation:scale-fade 0.5s cubic-bezier(.8,.02,.45,.91) forwards}.search-input{margin-top:55px;position:relative;margin-bottom:30px}.search-input button{position:absolute;right:0;width:40px;height:40px;text-indent:-999px;border:none;background-image:url(../img/icon.png);outline-color:rgb(0,0,0);background-position:-262px -68px;background-repeat:no-repeat no-repeat}.search-content input{border-style:none none solid;border-bottom-width:1px;border-bottom-color:rgb(240,240,240);height:40px;width:100%;font-size:18px;background-color:transparent;padding-right:50px}.search-content input::-webkit-input-placeholder{color:rgb(187,187,187);text-overflow:ellipsis}.search-history{margin-top:50px;display:inline-block}.search-history span{font-size:16px;color:rgb(187,187,187)}.search-history ul{margin:10px 0 0;display:inline-block}.search-history ul li{float:left;height:35px;border:1px solid rgb(240,240,240);margin:0 20px 20px 0;padding:0 15px}.search-box .search-history ul{width:100%}.search-history ul li a{display:inline-block;width:100%;height:100%;color:rgb(51,51,51);font-size:16px;line-height:33px}.search-hot{margin:0 0 0 30px}.search-hot ul li a{color:rgb(60,165,246)}.search-box .icon{vertical-align:text-bottom;background-repeat:no-repeat no-repeat}.search-box .icon{display:inline-block;height:20px;width:20px}.icon-search-close{position:absolute;right:60px;top:60px;z-index:999;background-position:-260px -120px}@media screen and (max-width:767px){.search-content{width:90%;margin-left:5%}.icon-search-close{right:30px;top:30px}}
</style>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="search-box " id="search-box">
	<i class="icon icon-search-close js-show-search-box"></i>
	<div class="search-content overlay-dialog-animate">
		<div class="search-input">
			<form role="search" method="get" action="<?php echo get_option('home'); ?>" onsubmit="return checkinput()">
				<button type="submit"></button>
				<input placeholder="请输入关键字，按回车键搜索" name="s" id="search-input">
				<input id="search-input" type="hidden">
			</form>
		</div>
		<div class="search-history search-hot">
			<span>热搜词</span>
			<ul>
				<?php if(function_exists('wp_nav_menu')) wp_nav_menu(array('container' => false, 'items_wrap' => '%3$s', 'theme_location' => 'search-nav')); ?>
			</ul>
		</div>
	</div>
</div>
<div id="main"  class="<?php if(is_single()){echo 'single_page';} ?>">
<div class="index-container">
<header id="top_header">	
	<div class="top_bar">
		<div class="abs_m">
			<a href="<?php bloginfo('url'); ?>" class="refresh_title btn"><img src="<?php echo ztmao('ztmao_logo'); ?>" style="width: 100%;"/></a>
			<div class="refreshBtn-container "><i class="refresh_btn"></i></div>
		</div>
		<div class="abs_l">
			<a href="javascript:;" class="msg-box"><div class="circle"></div></a>
		</div>
		<div class="abs_r">
			
		</div>
	</div>
</header>
<div class="top_menu_bar">	
	<ul class="top_menu_list">
	<?php if(function_exists('wp_nav_menu') && has_nav_menu('left-sidebar') ) {wp_nav_menu(array('container' => false, 'items_wrap' => '%3$s', 'theme_location' => 'left-sidebar'));}
	 ?>	
	 <?php if(function_exists('wp_nav_menu') && has_nav_menu('more-nav') ) {wp_nav_menu(array('container' => false, 'items_wrap' => '%3$s', 'theme_location' => 'more-nav'));} ?>
	</ul>
</div>